﻿using JESAI.Biz.Data.Enums.Common;
using JESAI.DDD.Entities;
using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace JESAI.Platform.Domain.Sys.Entities
{
    /// <summary>
    /// 任务调度中心
    /// </summary>
    [SugarTable("mlt_sys_schedule")]
    public class ScheduleEntity : IEntity<string>
    {
        /// <summary>
        /// 主键ID
        /// </summary>
        [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = false)]
        public string Id { get; set; }

        /// <summary>
        /// 任务名称
        /// </summary>
        public string Name { get; set; }

        public string Description { get; set; }

        public YesOrNo IsValid { get; set; }

        public string Cron { get; set; }

        public DateTime LastRunTime { get; set; }

        public DateTime CreateTime { get; set; }

        public string Args { get; set; }

        public string ClassName { get; set; }

        public string MethodName { get; set; }

        public string Assembly { get; set; }

        public string Queue { get; set; }

        public int RunNum { get; set; }

        public ScheduleType ScheduleType { get; set; }

        public ScheduleStstusType ScheduleStstus { get; set; }

        public YesOrNo IsAutoStart { get; set; }
    }
}
